package com.by.bean;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("登录Bean")
public class LoginBean {

    @ApiModelProperty(value = "账号", required = true)
    @NotBlank(message = "账号不能为空")
    String account;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    String password;
}
